package com.pearadmin.pro.modules.experiment.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pearadmin.pro.modules.experiment.entity.ExperimentInfo;
import com.pearadmin.pro.modules.experiment.entity.ExperimentInfoCount;
import com.pearadmin.pro.modules.experiment.entity.ExperimentInfoRequest;
import com.pearadmin.pro.modules.statistics.vo.StatisticsVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface ExperimentInfoDao  extends BaseMapper<ExperimentInfo> {
    int deleteByPrimaryKey(Integer id);

    int insert(ExperimentInfo record);

    int insertSelective(ExperimentInfo record);

    ExperimentInfo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ExperimentInfo record);

    int updateByPrimaryKey(ExperimentInfo record);

    List<ExperimentInfo> homeRecommendation();

    List<ExperimentInfo> getExperimentByParsent(String id);

    List<ExperimentInfo> getExperimentByMajor(String id);

    List<ExperimentInfo> selectAll();

    List selectInfo(@Param("request") ExperimentInfoRequest request);

    Integer editCount(ExperimentInfoCount experimentInfoCount);

    void insertCount(@Param("param") ExperimentInfoCount experimentInfoCount);

    int statistics();

    List<StatisticsVO> statisticsSeparate();

    List<StatisticsVO> statisticsVOS_side();
}
